// 获取trademark列表
import request from "../../utils/request";
export const reqGetTrademarkList = (page, limit) => {
  return request({
    method: "GET",
    url: `/admin/product/baseTrademark/${page}/${limit}`
  });
};

// 添加
export const reqAddTrademark = (logoUrl, tmName) => {
  return request({
    method: "POST",
    url: `/admin/product/baseTrademark/save`,
    data: {
      logoUrl,
      tmName
    }
  });
};
// 修改数据
export const reqUpdateTrademark = data => {
  return request({
    method: "PUT",
    url: `/admin/product/baseTrademark/update`,
    data
  });
};
//删除
export const reqDeleteTrademark = id => {
  return request({
    method: "DELETE",
    url: `/admin/product/baseTrademark/remove/${id}`
  });
};
// 等到trademarkList，在spu是添加使用
export const reqTrademarkShowSpu = () => {
  return request({
    method: "GET",
    url: `/admin/product/baseTrademark/getTrademarkList`
  });
};
